<template>
  <!-- 左分类 -->
  <div class="sort">
    <!-- 标题 -->
    <div class="title">
      <span class="text">精品分类</span>
      <span class="text">全部分类</span>
    </div>
    <!-- 图片 -->
    <div class="sortBox">
      <!--v-for 循环 -->
      <div class="item" v-for="item in 4" :key="item">
        <span>标题</span>
        <img
          src="https://www.lwjppz.cn/upload/2021/02/wallhaven-gj3e9d.md-a82a22a5b9564cf09e5df154f326b08c.jpg"
          alt="标题"
        />
      </div>
    </div>
  </div>
</template>

<script>
  import { postTags } from '../../api/tags';
  export default {
    name: 'Sort',
    data() {
      return {
        tagList: [],
      };
    },
    methods: {
      //  置顶标签
      async getTopTags() {
        const { data: res } = await postTags('/tags/findAllTopPing');
        console.log(res);
      },
    },
    created() {
      this.getTopTags();
    },
  };
</script>

<style lang="less" scoped>
  @import url('../../state/css/sort/sort.less');
</style>
